﻿using System;

namespace MessagePack.Decoders
{
	// Token: 0x020000C2 RID: 194
	internal class InvalidUInt64 : IUInt64Decoder
	{
		// Token: 0x060002EF RID: 751 RVA: 0x0000BCA8 File Offset: 0x0000A0A8
		private InvalidUInt64()
		{
		}

		// Token: 0x060002F0 RID: 752 RVA: 0x0000BCB0 File Offset: 0x0000A0B0
		public ulong Read(byte[] bytes, int offset, out int readSize)
		{
			throw new InvalidOperationException(string.Format("code is invalid. code:{0} format:{1}", bytes[offset], MessagePackCode.ToFormatName(bytes[offset])));
		}

		// Token: 0x040000E0 RID: 224
		internal static readonly IUInt64Decoder Instance = new InvalidUInt64();
	}
}
